//
//  DropdownboxView.h
//  eticket
//
//  Created by AnhQuocNguyen on 4/12/13.
//  Copyright (c) 2013 SoinMedia. All rights reserved.
//

#import <UIKit/UIKit.h>
#import  "MBProgressHUD.h"
#import "EGORefreshTableHeaderView.h"
#import "CategoryEvent.h"
#import "Country.h"
#import "ASIFormDataRequest.h"
@protocol dropdownboxViewDelegate;

@interface DropdownboxView : UIView<UITableViewDelegate, UITableViewDataSource, EGORefreshTableHeaderDelegate>{
    
    UITableView *_tblView;
    NSMutableArray *_arrayListData;
    
    
    //Pull to refesh
    EGORefreshTableHeaderView *refeshHeaderTableView;
    int addingDuration;
    BOOL _reloading;
    
    ASIFormDataRequest *requestServer;
    

}

@property (nonatomic,assign) id <dropdownboxViewDelegate> dropdownboxViewDelegate;
@property (nonatomic, retain) NSString *typeAPI;


- (void)getDataFromServer;
- (void)cancelRequest;
@end


@protocol dropdownboxViewDelegate <NSObject>


@optional
- (void)DropdownboxView:(DropdownboxView *)dropdownboxView didFinishDownload:(NSInteger)numberData withTypeDropboxIs:(NSString *)typeDropbox;
- (void)DropdownboxViewLoadingDataFail:(DropdownboxView *)dropdownboxView;
- (void)DropdownboxView:(DropdownboxView *)dropdownboxView didSelectedCountry:(Country *)country;
- (void)DropdownboxView:(DropdownboxView *)dropdownboxView didSelectedCategory:(CategoryEvent *)category;
- (void)DropdownboxViewCancelRefeshData:(DropdownboxView *)dropdownboxView;
- (void)DropdownboxViewRefeshData:(DropdownboxView *)dropdownboxView;
@end